﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<#assign active="zhList"/>
<body>
<#include "../include/common-top.ftl"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.ftl"/>
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-search">
                            <form role="form" class="form-inline clearfix" id="form2" action="">
                                <div class="input-group col-xs-2">
                                    <span>失信查询:&nbsp;</span>
                                    <input type="checkbox" value="card" <#if status!?contains("card")>checked</#if>
                                           name="statu">信用卡
                                    <input type="checkbox" value="dk"  <#if status!?contains("dk")>checked</#if>
                                           name="statu">贷款
                                    <input type="checkbox" value="zfb" <#if status!?contains("zfb")>checked</#if>
                                           name="statu">支付宝
                                    <input type="checkbox" value="gjj" <#if status!?contains("gjj")>checked</#if>
                                           name="statu">公积金
                                </div>

                                <#--<div class="input-group col-xs-3">
                                    <span class="input-group-addon">姓名</span>
                                    <input type="text" class="form-control" name="name" value="${name!}">
                                </div>

                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">身份证</span>
                                    <input type="text" class="form-control" name="card" value="${card!}">
                                </div>

                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">电话号码</span>
                                    <input type="text" class="form-control" name="phone" value="${phone!}">
                                </div>-->
                            </form>
                            <div class="form-tool btn-group">
                                <button class="btn btn-sm btn-success" form="form2">
                                    <i class="icon-search"></i>搜索
                                </button>

                            </div>
                        </div>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>姓名</th>
                                    <th>身份证号码</th>
                                    <th>手机号</th>
                                    <th>单位</th>
                                    <#if status!?contains("card")>
                                    <th>信用卡失信状态</th>
                                    </#if>
<#if status!?contains("gjj")>
                                    <th>公积金失信</th>
</#if>
<#if status!?contains("dk")>
                                    <th>贷款失信状态</th>
</#if>
<#if status!?contains("zfb")>
                                    <th>支付宝失信状态</th>
</#if>

                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#list pageInfo.list as item>
                                <tr>
                                    <td>${item.name!}</td>
                                    <td>${item.card!}</td>
                                    <td>${item.phone!}</td>
                                    <td>${item.unit!}</td>
                                       <#if status!?contains("card")>
                                    <td>${item.cardstatus!}</td>
                                       </#if>
<#if status!?contains("gjj")>
                                    <td>${item.gjjstatus!}</td>
</#if>
<#if status!?contains("dk")>
                                    <td>${item.dkstatus!}</td>
</#if>
<#if status!?contains("zfb")>
                                    <td>${item.zfbstatus!}</td>
</#if>

                                    <td>
                                    <#if sessionUser.type=='admin'>
                                        <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                            <a class="btn btn-xs btn-danger"
                                               href="javascript:if(confirm('确定要删除吗？')){location.href = '/person/del/${item.id}'}">删除</a>
                                        </div>
                                    </#if>
                                       <#-- <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                            <a class="btn btn-xs btn-success" href="/person/person/${item.id}">个人信用评估</a>
                                        </div>-->
                                    </td>
                                </tr>
                                </#list>
                                </tbody>
                            </table>
                        <#include "../include/table-page.ftl"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

<#include "../include/resource-script.ftl"/>
</html>

